package com.jrzh.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * 保存登录用户信息
 * @author Xanthin
 *
 */
@Entity
@Table(name = "persistent_logins")
public class PersistentLogins implements Serializable{
	private static final long serialVersionUID = 1L;
	@Id
	@Column(name = "series",length = 64,nullable = false)
	private String series;
	/**
	 * 用户名
	 */
	@Column(name = "username",length = 64,nullable = false)
	private String username;
	/**
	 * 令牌
	 */
	@Column(name = "token",length = 64,nullable = false)
	private String token;
	/**
	 * 最后登录时间
	 */
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "last_used",length = 64,nullable = false)
	private Date last_used;
	public String getSeries() {
		return series;
	}
	public String getUsername() {
		return username;
	}
	public String getToken() {
		return token;
	}
	public Date getLast_used() {
		return last_used;
	}
	public void setSeries(String series) {
		this.series = series;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public void setToken(String token) {
		this.token = token;
	}
	public void setLast_used(Date last_used) {
		this.last_used = last_used;
	}
	
}
